package com.gblfy.authserv.mapper;

import com.gblfy.authserv.entity.User;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

@Repository
public interface UserRepository extends JpaRepository<User, Integer> {

    /**
     * 通过用户名查询用户
     * @param userName
     * @return
     */
    User queryByUserName(String userName);
}